Routines (alphabetical) > Routines: C > CDF Routines > CDF_EXISTS

CDF_EXISTS

The CDF_EXISTS function returns true if the Common Data Format (CDF) scientific data format library is supported on the current IDL platform.

This routine is written in the IDL language. Its source code can be found in the file cdf_exists.pro in the lib subdirectory of the IDL distribution.

Syntax

Result = CDF_EXISTS( )

Return Value

Returns a 1 (True) if the library is supported or a 0 (False) if the library is not supported.

Arguments

None

Keywords

None

Examples

The following IDL command prints an error message if the CDF library is not available:

IF CDF_EXISTS() EQ 0 THEN PRINT, 'CDF not supported.'

Version History

 

Pre 4.0

Introduced